myList = [1,2,3,0,4,5,0]
index = 0
while index < len(myList):
    if myList[index] == 0:
        del(myList[index])
    else:
        index += 1
print myList
